package cn.yang.domain.award.model.entity;

import cn.yang.domain.award.event.SendAwardMessageEvent;
import cn.yang.domain.award.model.valobj.AwardStateVO;
import cn.yang.domain.award.model.valobj.TaskStateVO;
import cn.yang.types.event.BaseEvent;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @version v1.0
 * @ClassName: cn.yang.domain.award.model.entity
 * @Description: TODO
 * @Author: YJ
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class TaskEntity {
    //活动ID
    private String userId;
    //消息主题
    private String topic;
    //消息编号
    private String messageId;
    //消息主体
    private BaseEvent.EventMessage<SendAwardMessageEvent.SendAwardMessage> message;
    //任务状态:create-创建、completed-完成，fail-失败
    private TaskStateVO taskState;
}
